Skip to content

Conversation

masseyke
Copy link
Member

@masseyke masseyke commented Oct 13, 2025

This test uses a random byte array as input source. That fails when we log the input request because the toString() attempts to convert the byte array to a utf-8 string and sometimes the data is not valid utf-8. This change makes it so that the random bytes are always in the ascii rage, which is always valid utf-8.
Closes #136436

@masseyke masseyke added >test Issues or PRs that are addressing/adding tests :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP v9.3.0 labels Oct 13, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Oct 13, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

Copy link
Contributor

@nielsbauman nielsbauman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@masseyke masseyke added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Oct 13, 2025
@elasticsearchmachine elasticsearchmachine merged commit e21e7b8 into elastic:main Oct 13, 2025
35 checks passed
@masseyke masseyke deleted the fix-SamplingServiceTests-testMaybeSampleMaxSize branch October 13, 2025 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP Team:Data Management Meta label for data/management team >test Issues or PRs that are addressing/adding tests v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] SamplingServiceTests testMaybeSampleMaxSize failing

3 participants